package com.erp.app.admin.companySetup.pk;

import java.io.Serializable;

import com.erp.framework.model.pk.SimpleBasePk;

public class CompanyImagePk implements SimpleBasePk, Serializable {
    private String companyCode;
    private String id;

    public CompanyImagePk(String companyCode, String id) {
        this.companyCode = companyCode;
        this.id = id;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public String getId() {
        return id;
    }

    public int hashCode() {
        return (companyCode + id).hashCode();
    }

    public boolean equals(Object obj) {
        if (obj instanceof CompanyImagePk) {
        	CompanyImagePk pk2 = (CompanyImagePk) obj;
            return (companyCode.equals(pk2.companyCode) && id.equals(pk2.id));
        }
        return false;
    }

    public String toString() {
        return "{companyCode = " + this.companyCode + ", id = " + this.id + "}";
    }
}
